package org.esky.study;

import java.util.Vector;

/**
 * 
 * @author Xuyaguang
 * @time 2011-11-10-下午03:21:58
 * @explain:Vector转Array
 */
public class VectorToArray {
	public static void main(String[] args) {
		Vector<String> v=new Vector<String>();
		v.add(0, "a");
		v.add(1, "b");
		String[] str = (String[]) v.toArray(new String[0]);
		for (int i = 0; i < str.length; i++) {
			System.out.println(str[i]);
		}
	}
}
